package com.ly.mpayment.persist.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * UserLoginLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="userloginlog"

)

public class UserLoginLog  implements java.io.Serializable {


    // Fields

     private String logsuuid;
     private User user;
     private Date logintime;
     private String loginip;
     private String remark;


    // Constructors

    /** default constructor */
    public UserLoginLog() {
    }


    /** full constructor */
    public UserLoginLog(User user, Date logintime, String loginip, String remark) {
        this.user = user;
        this.logintime = logintime;
        this.loginip = loginip;
        this.remark = remark;
    }


    // Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="logsuuid", unique=true, nullable=false, length=40)

    public String getLogsuuid() {
        return this.logsuuid;
    }

    public void setLogsuuid(String logsuuid) {
        this.logsuuid = logsuuid;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="useruuid")

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Column(name="logintime", length=19)

    public Date getLogintime() {
        return this.logintime;
    }

    public void setLogintime(Date logintime) {
        this.logintime = logintime;
    }

    @Column(name="loginip", length=40)

    public String getLoginip() {
        return this.loginip;
    }

    public void setLoginip(String loginip) {
        this.loginip = loginip;
    }

    @Column(name="remark", length=40)

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }









}
